<h1>Listing dvds</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Length</th>
  </tr>

<% for dvd in @dvds %>
  <tr>
    <td><%=h dvd.title %></td>
    <td><%=h dvd.length %></td>
    <td><%= link_to 'Show', dvd %></td>
    <td><%= link_to 'Edit', edit_dvd_path(dvd) %></td>
    <td><%= link_to 'Destroy', dvd, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New dvd', new_dvd_path %>
